package edu.chinasoft.aop02;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public
class Target01 {
    private Log log = LogFactory.getLog( Target01.class);
    public void method01(){
        log.info( "Target01>>>method01 start……" );
        long start = System.currentTimeMillis();
        log.info( "start time---->>>"+start+"" );
        try {
            Thread.sleep( 2*1000 );
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long end = System.currentTimeMillis();
        log.info( "start time---->>>"+end+"" );
        log.info( "Target01>>>method01 end……" );
    }
    public void method02(){
        log.info( "Target01>>>method01 start……" );
        long start = System.currentTimeMillis();
        log.info( "start time---->>>"+start+"" );
        try {
            Thread.sleep( 4*1000 );
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long end = System.currentTimeMillis();
        log.info( "start time---->>>"+end+"" );
        log.info( "Target01>>>method01 end……" );
    }
    public void method03(){
        log.info( "Target01>>>method01 start……" );
        long start = System.currentTimeMillis();
        log.info( "start time---->>>"+start+"" );
        try {
            Thread.sleep( 6*1000 );
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        long end = System.currentTimeMillis();
        log.info( "start time---->>>"+end+"" );
        log.info( "Target01>>>method01 end……" );
    }

}
